<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>讯都车网_发布新闻</title>
    <meta name="keywords" content="汽车服务,汽车维修网,汽车美容,汽车保养,汽车用品网,汽车配件网,二手车交易网,汽车网站排名,讯都车网" />
    <meta name="description" content="讯都车网是国内最大的汽车产业综合服务平台，汇聚海量的汽车消费信息和汽车服务商家，整合整车制造、销售、维修保养、美容养护、租赁保险、学车用车等各种涉车资源，惠及汽车行业及广大汽车用户，为每一位车主用户提供细致入微的服务，为各类汽车产业企业提供高性价比、高效率的整合营销平台。" />
    <link rel="stylesheet" href="../css/css/base.css" type="text/css"/>
    <link rel="stylesheet" href="../css/css/style.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="../editor/dist/css/wangEditor.min.css">
    <link rel="stylesheet" type="text/css" href="../editor/dist/css/wangEditor.css">
    <link rel="stylesheet" type="text/css" href="../editor/dist/css/wangEditor.less">
    <style type="text/css">
        .container{
            width: 800px;
            height: auto;
            margin: 30px auto;
            padding:30px 120px;
            background: #f5f5f5;
        }
        .container textarea[name='content']
        {
            width:778px;
            _width: 778px;
            max-width: 778px;
            height: 380px;
            border-color: #E5E5E5;
            padding:10px;
        }
        .container .title
        {
            padding:12px 0px;
        }
        .container form div.ovfl_hid
        {
            margin:15px 0px;
        }
        .container form label
        {
            font-size: 1em;
            color: #000;
            font-weight:600;
            width:100px;
            height:40px;
            display: block;
            float: left;
            line-height: 40px;
        }
        .container form input[name='title'],
        .container textarea[name='intro']
        {
            _width:678px;
            max-width: 678px;
            width:678px;
            height:20px;
            line-height:20px;
            display: block;
            border:1px solid #E5E5E5;
            float: left;
            outline:none;
            padding:10px;
        }
        .container textarea[name='intro']
        {
            height:60px;
            max-height:80px;
        }
        .container form input[type=submit]
        {
            width:200px;
            height: 40px;
            float: none;
            margin:20px auto;
            background: #0074d0;
            color: #ffffff;
            display: block;
        }
        .container .wangEditor-container
        {
            clear: both;
        }
        .container a[tabindex='-1'] i:before
        {
            color: #0074d0;
        }
        .container .content
        {
            width:auto;
        }
    </style>
</head>
<body>
<?php
    require('tance.php');
?>
<div class="main ovfl_hid" style="border-top: 3px solid #0074d0;">
    <div class="container">
        <h1 class="title">新闻发布</h1>
        <form action="function.php" method="post">
            <div class="ovfl_hid">
                <label>文章标题：</label>
                <input type="text" name="title"/>
            </div>
            <div class="ovfl_hid">
                <label>文章简介：</label>
                <textarea name="intro"></textarea>
            </div>
            <div class="ovfl_hid">
                <label>上传图片：</label>
                <input type="file" name="image"/>
            </div>
            <div class="ovfl_hid">
                <label>文章内容：</label>
                <textarea id="textarea1" name="content"></textarea>
            </div>
            <input type="submit" value="提交">
        </form>
    </div>
</div>
<?php
    require('bottom.php');
?>
</body>
<script type="text/javascript" src="../editor/dist/js/lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../editor/dist/js/wangEditor.min.js"></script>
<script type="text/javascript">
    var editor = new wangEditor('textarea1');
    // 上传图片
    editor.config.uploadImgUrl = 'upload.php';
    editor.config.uploadImgFileName = 'myFileName';
    editor.create();
</script>
</html>